//
//  CBUUID+addition.m
//  UDKLib
//
//  Created by biao on 15/10/21.
//  Copyright © 2015年 biao.rao. All rights reserved.
//

#import "CBUUID+addition.h"
#import <UIKit/UIKit.h>
@implementation CBUUID (addition)

- (NSString *)zkUUIDString
{
    if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.1)
    {
        return self.UUIDString;
    }
    else
    {
        NSString *str = [NSString stringWithFormat:@"%@",self.data];
        NSRange start = [str rangeOfString:@"<"];
        NSRange end = [str rangeOfString:@">"];
        NSString *UUIDString = [str substringWithRange:NSMakeRange(start.location+1, end.location-start.location-1)];
        return UUIDString;
    }
}

@end
